package cn.chen.sparkproject.factory;

import cn.chen.sparkproject.dao.*;
import cn.chen.sparkproject.dao.impl.*;

public class DAOFactory {

    public static ITaskDAO getTaskDao(){
        return new TaskDaoImpl();
    }

    public static ISessionAggrStatDao getSessionAggrStatDao(){
        return new SessionAggrStatDaoImpl();
    }

    public static ISessionRandomExtractDao getSessionRandomExtractDao(){
        return new SessionRandomExtractDaoImpl();
    }

    public static ISessionDetailDao getSessionDetailDao(){
        return new SessionDetailDaoImpl();
    }

    public static ITop10CategoryDao getTop10CategoryDao(){
        return new Top10CategoryDaoImpl();
    }

    public static ITop10SessionDao getTop10SessionDao(){
        return new Top10SessionDaoImpl();
    }

}
